package fun.werfamily.wf.goods.core.infrastructure.mapper;

import fun.werfamily.wf.goods.core.infrastructure.dataobject.GoodsSpuDO;

import java.util.List;

public interface GoodsSpuMapper {
    int deleteByPrimaryKey(Long id);

    int insertSelective(GoodsSpuDO record);

    GoodsSpuDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsSpuDO record);

    /**
     * 商品列表
     * @return
     */
    List<GoodsSpuDO> listGoodsSpu(String keyWord);

    GoodsSpuDO getBySpuCode(String spuCode);

    List<GoodsSpuDO> listBySpuCodes(List<String> spuCodes);
}